<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$Charset}>">
<title>商务室 - <{$sitetitle}></title>
<link href="<{$CSS_PATH}>css/style.css" rel="stylesheet" type="text/css">
<link href="<{$INC_PATH}>css/room.css" rel="stylesheet" type="text/css">
<script src="<{$JS_PATH}>js/prototype.js"></script>
<script src="<{$JS_PATH}>js/general.js"></script>
<script src="<{$JS_PATH}>js/mixselect.js"></script>
<script type="text/javascript">
function hideorshow(curDiv){
$(curDiv).style.display = ($(curDiv).style.display == 'block')? 'none':'block';
}

function CheckInput(){
	if($F('trade_topic')==""){
		alert("请输入信息标题");
		$('trade_topic').focus();
		return false;
	}
	return true;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><{include file="default/element.top.html"}></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" background="<{$tpl_img_path}>office/left_bg.gif"><{include file="room/menu.html"}></td>
    <td align="center"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img SRC="<{$tpl_img_path}>office/banr_pic.gif" WIDTH=570 HEIGHT=101 ALT=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<{$tpl_img_path}>office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><img src="<{$tpl_img_path}>office/icon_newd.gif" width="15" height="16"> 发布<{$TradeType}>信息 </td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
      </table>
		<form name="TradeFrm" enctype="multipart/form-data" method="post" action="<{$smarty.server.PHP_SELF}>" onSubmit="$('Save').disabled=true;">
		<input type="hidden" name="type_id" value="<{$smarty.get.type|default:"1"}>">
		<input type="hidden" name="id" value="<{$smarty.get.id}>">
		<input type="hidden" name="oldimgname" value="<{$row.TradePicture}>">
		<input type="hidden" name="trade[area_id]" value="<{$MemberInfo.province_code_id}>" />
		<input type="hidden" name="offer[gender]" value="<{$MemberInfo.MemberGender}>" />
		<input type="hidden" name="offer[province_name]" value="<{$AreaName}>" />
		<input type="hidden" name="offer[city_name]" value="<{$AreaName}>" />
	    <table width="95%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35"><span class="gray">&nbsp;（提示：带<font color="#FF6600"> * </font>号的为必填项）</span></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="bgblue"><img src="<{$tpl_img_path}>office/corner_01.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<{$tpl_img_path}>office/corner_02.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td>
				  <table width="100%" border="0" cellspacing="0" cellpadding="5">
				  <{if $smarty.get.id}>
                      <tr>
                        <td width="90" class="tdleft"><font color="#FF6600">*</font> 方 向：</td>
                        <td class="tdright"><{if $row.TradeIfUrgent=="1"}>紧急!<{/if}><{$TradeTypes[$row.TradeTypeId]}></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主 题：</td>
                        <td class="tdright"><{$row.TradeTopic}></td>
                      </tr>
				<{else}>
                      <tr>
                        <td width="90" class="tdleft"><font color="#FF6600">*</font> 方 向：</td>
                        <td class="tdright"><{html_radios name="type_id" options=$TradeTypes checked=$row.TradeTypeId|default:"1" separator=" "}><input type="checkbox" name="trade[if_urgent]" <{if $row.TradeIfUrgent=="1"}>checked<{/if}> />
                        紧急 !</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主 题：</td>
                        <td class="tdright"><input name="topic" id="trade_topic" type="text" size="25" value="<{$row.TradeTopic}>" />
(25字以内最佳)</td>
                      </tr>
				<{/if}>
                      <tr>
                        <td class="tdleft">   关 键 词：</td>
                        <td class="tdright"><{foreach from=$row.TradeKeywords name=keyword_tag item=data}><a href="<{$SiteUrl}>tag.php?keyword=<{$data.title|urlencode}>" target="_blank"><{$data.title}></a><a href="trade.php?do=trade&action=delkeyword&keyid=1"><img src="<{$tpl_img_path}>office/del.gif" border="0" alt="删除'<{$data.title}>'关键词引用" /></a><{/foreach}></td>
                      </tr>
                      <tr>
                        <td class="tdleft">   Add Tags：</td>
                        <td class="tdright"><input name="keywords" type="text" size="25" value="" />
(多个关键词请用","号或者空格隔开.)</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 有效期：</td>
                        <td class="tdright"><{html_radios name="expire_days" options=$OfferExpires checked=$row.TradeExpireDays|default:"30" separator=" "}></td>
                      </tr>
                      <tr>
                        <td class="tdleft"> 行 业：</td>
                        <td class="tdright"><select name="aindustry" id="aindustry" USEDATA="dataSrc" SUBCLASS="1">

						</select><select name="bindustry" id="bindustry" USEDATA="dataSrc" SUBCLASS="2">

						</select>
						<br />当前行业类别  :  <{foreach from=$CurrentIndustry name=cui item=ci}><{$ci.IndustryName}>&rarr;<{foreachelse}>空<{/foreach}> (如果不选，则默认为公司行业)
						</td>
                      </tr>
                      <tr>
                        <td class="tdleft">参 数：</td>
                        <td class="tdright">想让信息被更多买家搜索到？请补充产品参数：
						<table border="0" cellspacing="0" cellpadding="4">
                            <tr>
                              <td><a name="p" /></td>
                            </tr>
							<{foreach from=$ObjectParams name=op item=tparam}><tr>
                              <td><{$tparam.title}>:
							  <{assign var="param_name" value="`$tparam.name`"}>
                                  <input name="param[<{$param_name}>]" type="text" value="<{$row.OfferParams.$param_name}>"></td>
                            </tr>
							<{/foreach}>
                        </table>
						</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600"> *</font> 详细说明：</td>
                        <td class="tdright"><textarea name="content" cols="45" rows="8" wrap="VIRTUAL"><{$row.TradeContent|nl2br|strip_tags}></textarea><br /><font color="#FF3300">（详细说明中请勿包含公司名称、地址、联系方式等）<br>
                        </font></td>
                      </tr>
					   <{if $smarty.get.id==""}>
                      <tr>
                        <td valign="top" class="tdleft">　产品图片：</td>
                        <td class="tdright"><input name="pic" type="file" size="35" id="uploadfile" onChange="preview()" />
                            <span class="gray"><br>
                            <br>
                    （图片大小不要超过200K ,格式gif,jpg, 图片宽度最大为400*250象数效果最佳！）</span></td>
                      </tr>
					  <{/if}>
                      <tr>
                        <td valign="top" class="tdleft">　当前图片: </td>
                        <td class="tdright"><img id="uploadpic" src="<{if $row.TradeRemotePicture}><{$SiteUrl}>media/attachment/<{$row.TradeRemotePicture}><{elseif  $row.TradeTopic!=""}><{$SiteUrl}>media/attachment/<{$row.TradePicture|default}><{else}><{$SiteUrl}>media/default/big.jpg<{/if}>" alt="<{$row.TradeTopic|default:"中文名无法预览"}>" width="400" height="250" border="0" /></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="tdleft"><img src="<{$tpl_img_path}>office/corner_03.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<{$tpl_img_path}>office/corner_04.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                <br>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><table width="100%" border="0" cellpadding="8" cellspacing="1" class="bgblue">
                        <tr>
                          <td align="center" class="zi">请务必检查联系资料!（若有误，客户无法找到您，信息也不能被审核通过！） <br>
                    需要的话，您可点此 <a href="./card.php" target="_self" class="font14b_org"><strong>修改联系资料</strong></a></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><table width="100%" border="0" align="center" cellpadding="8" cellspacing="1" class="bgblue">
                        <tr>
                          <td><table width="100%" border="0" cellpadding="2" cellspacing="1" class="zi">
                              <tr bgcolor="#FFFFFF">
                                <td width="24%" align="right">联系人：</td>
                                <td width="76%"><{$CompanyInfo.CompanyLinkMan|default:$MemberInfo.MemberName}><font color="#999999">（全名） </font>
								</td>
                              </tr>
<{if $CompanyId!=""}>
							  <tr bgcolor="#FFFFFF">
                                <td align="right">公司名称：</td>
                                <td><{$CompanyInfo.CompanyName}><font color="#999999">（公司全称）</font></td>
                              </tr>
<{/if}>
                              <tr bgcolor="#FFFFFF">
                                <td align="right">首选联系电话：</td>
                                <td><select name="offer[prim_tel]">
                <{html_options options=$PhoneTypes selected="1"}>
              </select>&nbsp;号码：<input type="text" name="offer[prim_telnumber]" id="prim_telnumber" value="<{$MemberInfo.MemberTel}>" /></td>
                              </tr>
                              <tr bgcolor="#FFFFFF">
                                <td align="right">首选即时通讯：</td>
                                <td><select name="offer[prim_im]">
                <{html_options options=$ImTypes selected="1"}>
              </select>&nbsp;号码：<input type="text" name="offer[prim_imaccount]" id="prim_imaccount" value="<{$MemberInfo.MemberQQ}>" /></td>
                              </tr>
                              
                              <tr bgcolor="#FFFFFF">
                                <td align="right">电子邮件：</td>
                                <td><{$MemberInfo.ContactEmail}></td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
          </tr>
          <tr>
            <td height="40" align="center"><br>
                <input type="hidden" name="edit_trade" id="EditTrade" value="y" />
                <input type="submit" name="save" id="Save" value="一切完成，请发布！" onClick="return CheckInput();">
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
    </table>
		</form>
	</td>
  </tr>
</table>
<{include file="room/foot.html"}>
</body>
</center>
</html>
<script language="javascript">
var linkage = new Linkage("dataSrc", "<{$JS_PATH}>media/xml/industry_option.xml");
linkage.BLANK_SELECT = "请选择";
linkage.init();
</script>